﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Widgetsphere.Autos.Websitev2.UserControls
{
	public partial class ModelDimensionControl : DimensionDisplayControl
	{
		#region Constructors

		public ModelDimensionControl()
		{
			this.LinkSetup += new EventHandler<DimensionDisplayEventArgs>(DimensionControl_LinkSetup);
		}

		#endregion

		#region Event Handlers

		private void DimensionControl_LinkSetup(object sender, DimensionDisplayEventArgs e)
		{
			e.Query.Model = e.Refinement.FieldValue;
			e.Query.DimensionValueList.Add(e.Refinement.DVIdx);
		}

		#endregion

		#region Property Implementations

		protected override PlaceHolder MorePanel
		{
			get { return pnlMore; }
		}

		protected override Table MainTable
		{
			get { return tableMain; }
		}

		#endregion

	}
}